<template>
   <div>
      <h1>App组件</h1>
      <button @click="isshow=false">销毁子组件</button>
      <life-cycle ptitle="组件的生命周期函数演示" v-if="isshow"></life-cycle>
      <!-- <operas></operas> -->
   </div>
</template>

<script>
import LifeCycle from './components/LifeCycle.vue'
import Operas from './components/Operas.vue'
export default {
  components: { LifeCycle, Operas },
  data(){
   return{
      isshow:true
   }
  }
}
</script>

<style>

</style>